package com.agent.repository;

import com.agent.entity.Knowledge;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface KnowledgeMapper {
	
	public List<Knowledge> searchKnowledge(Knowledge knowledge);
	public List<Knowledge> searchKnowledgeByWeixin(Knowledge knowledge);

	public List<Knowledge> searchAll();
	
	public List<Knowledge> getKnowledge(String id);
	
	public void insert(Knowledge knowledge);
	
	public void update(Knowledge knowledge);
	
	public void delete(String id);
	
}
